<!DOCTYPE html>
<html>

<head>
  <title>liquidjs for the browser</title>
  <script src="node_modules/liquidjs/dist/liquid.min.js"></script>
</head>

<body>
  <script>
    var Liquid = window.liquidjs.Liquid
    var engine = new Liquid({
      extname: '.html',
      cache: true
    });
    var src = " {% include 'date.html' %},{% include 'shop.html' %}";
    var ctx = {
      name: 'Liquid',
      date: new Date()
    };
    engine.parseAndRender(src, ctx)
      .then(function(html) {
        document.body.innerHTML = html
      });
  </script>
</body>

</html>
